package lcy.homework03.first;

/**
 * @ClassName: Book
 * @Description: 书籍类 Book
 * @author: 李春洋
 * @date: 2024/4/18 16:02
 * @Blog: https://
 */
public class Book  extends Item {
    private String author;

    public Book(String title, String author) {
        super(title);
        this.author = author;
    }

    @Override
    public void displayInfo() {
        System.out.println("Book: " + title + " by " + author);
    }
}
